<?php

class UpdateCommand extends CConsoleCommand {

    public function run($args) {

	/*
	 * Reset monthly file upload
	 */
	$this->_resetCapacity();
    }

    /*
     * send mail to users have some expired ads
     */

    private function _resetCapacity() {
	Yii::app()->db->createCommand('UPDATE {{users}} SET uploaded_size=0')->execute();
    }

}

